package com.clps.digital.service.impl;

import com.clps.digital.dao.OrderDao;
import com.clps.digital.model.entity.Orders;
import com.clps.digital.service.OrderService;
import com.clps.digital.util.UserContext;

import java.util.Collections;
import java.util.List;

/**
 * @Author: 小炎子
 * @Date: 2024/9/3 下午3:09
 * @Description: 订单实现类
 **/
public class OrderServiceImpl implements OrderService {

    private OrderDao orderDao;

    @Override
    public List<Orders> getOdersList() {
        Long userId = UserContext.getUser();
        return orderDao.getOdersList(userId);
    }

    @Override
    public List<Orders> getAllOrdersList() {
        return orderDao.getAllOrdersList();
    }
}
